package com.zhl.extends8;

public class Test {
    public static void main(String[] args) {
        //目标：搞清楚继承的好处
        Teacher t = new Teacher();
        t.setName("张三");
        t.setSkill("语文");
        System.out.println(t.getName());
        System.out.println(t.getSkill());
        t.printInfo();
    }
}
